import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/global.css'
import './assets/fonts/iconfont.css'
import './http/axios'
import './utils/array'
import XEUtils from "xe-utils";
//引入表格
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
import Breadcrumb from '@/components/base/Breadcrumb'
import EditButton from '@/components/base/EditButton'
//引入富文本编辑模块
import VueQuillEditor from 'vue-quill-editor'

//导入富文本编辑的样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(ElementUI)
Vue.use(VXETable)
Vue.use(VueQuillEditor)
Vue.component('Breadcrumb', Breadcrumb)
Vue.component('EditButton', EditButton)
Vue.filter('formatDate',function(val){
  // // 秒处理为毫秒
  return XEUtils.toDateString(val * 1000, "yyyy-MM-dd HH:mm:ss");
})
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
